package xyz.sicau.blog.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;


@Component
@ConfigurationProperties(prefix = "note")
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Note {
    private int noteId;
    private int noteUserid;
    private String noteUsername;
    private Date noteSendtime;
    private String noteType;
    private String noteInfo;
    private String noteContent;
    private Date noteTime;
    private String noteImgs;
    private String noteVideos;
    private String noteAudios;
    private String noteFiles;
    private String noteLocation;
    private String notePeople;
    private String noteTags;

    public Note(String noteUsername, String noteContent, Date noteTime,String noteType) {
        this.noteUsername = noteUsername;
        this.noteContent = noteContent;
        this.noteTime = noteTime;
        this.noteType = noteType;
    }

}
